/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sv.com.dizucar.controlador;

import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import sv.com.dizucar.modelo.Cajero;

/**
 *
 * @author stefanny
 */
public class CajeroControlador extends ControladorAbstracto<Cajero> {

    public CajeroControlador() {
        super(Cajero.class);
    }

    
    public List<Cajero> listaCajerosConNombreStefanny(){
        Query sentencia = getEntityManager().createQuery("select c from Cajero c where c.nombre = 'STEFANNY'");
        return sentencia.getResultList();
    }
    
    
    @Override
    protected EntityManager getEntityManager() {
        return Conexion.getEntityManager();
    }
    
}
